package com.xmtlxx.wms.domain.vo;

import com.xmtlxx.common.annotation.ExcelDictFormat;
import com.xmtlxx.common.convert.ExcelDictConvert;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.xmtlxx.system.domain.SysOss;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;


/**
 * 标签打印任务明细视图对象 t_put_dtl
 *
 * @author xmtlxx
 * @date 2022-08-15
 */
@Data
@ApiModel("标签打印任务明细视图对象")
@ExcelIgnoreUnannotated
public class PrintTaskDtlVo {

    private static final long serialVersionUID = 1L;

    /**
     * 任务明细ID
     */
    @ExcelProperty(value = "任务明细ID")
    @ApiModelProperty("任务明细ID")
    private String id;

    /**
     * 上架任务ID
     */
    @ExcelProperty(value = "上架任务ID")
    @ApiModelProperty("上架任务ID")
    private String taskId;

    /**
     * 物品编号
     */
    @ExcelProperty(value = "物品编号")
    @ApiModelProperty("物品编号")
    private String pno;

    /**
     * 物品名称
     */
    @ExcelProperty(value = "物品名称")
    @ApiModelProperty("物品名称")
    private String name;

    /**
     * 仓库ID
     */
    @ExcelProperty(value = "仓库ID")
    @ApiModelProperty("仓库ID")
    private String storeId;

    /**
     * 库区ID
     */
    @ExcelProperty(value = "库区ID")
    @ApiModelProperty("库区ID")
    private String areaId;

    /**
     * 库位ID
     */
    @ExcelProperty(value = "库位ID")
    @ApiModelProperty("库位ID")
    private String locatorId;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "wms_put_status")
    @ApiModelProperty("状态")
    private String status;

    /**
     * 图片
     */
    @ExcelProperty(value = "图片")
    @ApiModelProperty("图片")
    private String pics;

    /**
     * 上架员ID
     */
    @ExcelProperty(value = "上架员ID")
    @ApiModelProperty("上架员ID")
    private Long operator;

    /**
     * 上架时间
     */
    @ExcelProperty(value = "上架时间")
    @ApiModelProperty("上架时间")
    private Date putTime;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    @ApiModelProperty("备注")
    private String memo;

    /**
     * 删除标识
     */
    @ExcelProperty(value = "删除标识", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_del_flag")
    @ApiModelProperty("删除标识")
    private String delFlag;

    /**
     * 数量
     */
    @ExcelProperty(value = "数量")
    @ApiModelProperty("数量")
    private Long nums;

    /**
     * 箱号
     */
    @ApiModelProperty(value = "箱号")
    private String boxNo;
    /**
     * 货箱ID
     */
    @ApiModelProperty(value = "货箱ID")
    private String boxId;


    private String storeName;
    private String areaName;
    private String locatorName;

    /**
     * 是否已满
     */
    private String locatorStatus;
    @ApiModelProperty("财物入库编码")
    private String qrcode;


    /**
     * 是否封箱
     */
    @ApiModelProperty("是否封箱")
    private String seal;

    private List<SysOss> oss;

    /**
     * 扣押单位
     */
    private String officeName;

    /**
     * 地域信息
     */
    private String region;

    private String groupName;
    private String cabinetName;
    private Integer floors;

    /**
     * 保管密码
     */
    @ApiModelProperty("保管密码")
    private String password;

    private Boolean isPwd;

    /**
     * 上架密码
     */
    @ApiModelProperty("上架密码")
    private String putPassword;

    private String omsTaskId;//OMSTaskID

    private Integer ctrl;//0-加入；1-移除

    private String uuid;//队列ID


    List<PrintTaskDtlVo> items;

}
